﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeChatParking.Entity
{
    /// <summary>
    /// 搜索条件的基类包含了页数 行数 
    /// </summary>
    public class BaseFilter
    {
        private int _page = 1;

        /// <summary>
        /// 页数。从 1 开始
        /// </summary>
        public int page
        {
            set
            {
                _page = value;
            }
            get
            {
                return _page;
            }
        }

        public int _rows = 20;

        public int rows
        {
            set { _rows = value; }
            get { return _rows; }
        }

        private string _sortName = "UpdateTime";

        public string sort
        {
            get { return _sortName; }
            set { _sortName = value; }
        }

        public bool asc
        {
            get;
            set;
        }
    }
}
